<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>03-属性选择器-[attr$=val]</title>
    <style>
        [href*="520it.com"] {
            color: red;
        }
    </style>
</head>
<body>

<a href="http://www.520it.com">小码哥官网</a>
<a href="http://520it.com">小码哥官网</a>
<a href="http://www.520it.com/aboutus">小码哥官网-关于</a>
<a href="http://bbs.520it.com">小码哥论坛</a>

<a href="http://www.baidu.com">百度</a>



</body>
</html>